/*
 * PowerControlStub
 * used as a stub for IPowerControl in our system
 */

public class PowerControlStub implements IPowerControl 
{

	@Override
	public boolean getPowerState() 
	{
		return powerState;
	}

	@Override
	public void powerOff() 
	{
		powerState = false;
		printState();
	}

	@Override
	public void powerOn() 
	{
		powerState = true;
		printState();
	}
	
	private void printState()
	{
		if(powerState)
		{
			System.out.println("[POWER CONTROL] power turned ON");
		}
		else
		{
			System.out.println("[POWER CONTROL] power turned OFF");
		}
		
	}
	
	private boolean powerState = true;

}
